<h1>Listing routes</h1>

<table>
  <tr>
    <th>Notes</th>
    <th>Name</th>
  </tr>

<% @routes.each do |route| %>
  <tr>
    <td><%=h route.notes %></td>
    <td><%=h route.name %></td>
    <td><%= link_to 'Show', route %></td>
    <td><%= link_to 'Edit', edit_route_path(route) %></td>
    <td><%= link_to 'Destroy', route, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New route', new_route_path %>